package com.ty.day3;

import java.util.Scanner;

/**
 * Created by IntelliJ IDEA.
 *
 * @author : txy
 * @create 2023/11/8 17:59
 */
public class Task3 {
    public static void main(String[] args) {
        int year,day=365;
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入年份：");
        year= sc.nextInt();
        if (year % 4 == 0 && year % 100 != 0 || year % 400 == 0){
            day++;//是润年加一天
        }
        System.out.println(year+"年有"+day+"天");
    }
}
